package run
 
import (
	"nightowl/route"
	. "nightowl/controller"
	"github.com/gin-gonic/gin"
	"net/http"
	// "fmt"
)
type PipelineRunLogController struct {
	
}

func (run PipelineRunLogController) GetLog(c *gin.Context){ //,httpMethod string
	index = index + 1
	c.JSON(http.StatusOK, gin.H{
		"code": 1,
		"msg": "ok",
		"data": index,
	})
 
}
//这里每个controller执行init方法都要注册自动路由
func init() {
	c := &PipelineRunLogController{}
	restInfo := &RestInfo{
		BasePath: "/run/log",
	}
	route.Register(*restInfo, c)
}